package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.MemberReservation;

import java.util.List;
import java.util.Map;

public interface IMemberReservationService extends IService<MemberReservation> {
    /**
     * 获取用户预约记录取消数量
     * */
    Integer getCancelledReservationCount(Long userId);

    /**
     * 查询每个时间段剩余预约次数
     * */
    List<Map<String, Object>> countByTime(Long time);
}
